package hong.jun.pet_home.domain.util;

/**
 * 常量类
 */
public class SmsConstants {
    /**
     * 和邮箱或者手机号加起来用来作为验证码的 key
     */
    public static final String REGISTER_CODE_PREFIX = "smsCode_register:";

    /**
     * 获取微信用户信息的常量
     */
    //应用唯一标识，在微信开放平台提交应用审核通过后获得
    public static final String APPID = "wxd853562a0548a7d0";
    //应用密钥 AppSecret，在微信开放平台提交应用审核通过后获得
    public static final String SECURITY = "4a5d5615f93f24bdba2ba8534642dbb6";
    public static final String GET_OPENID_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    public static final String GET_WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

    /**
     * 支付单用的常量
     */
    public static final String BUSINESSTYPE_ADOPT = "businessType_adopt";//宠物收购
    public static final String BUSINESSTYPE_FIND_MASTER = "businesstype_find_master";  //收养宠物
    public static final String BUSINESSTYPE_GOODS = "businesstype_goods";      //商品
    public static final String BUSINESSTYPE_RECHARGE = "businesstype_recharge";    //充值
    public static final String BUSINESSTYPE_PRODUCT = "businesstype_product"; //宠物保养服务

    /**
     * 支付宝验证回调常量
     */
    public static String NOTIFY_URL = "http://q8jn3s.natappfree.cc/alipayNotify";//内网穿透的地址
    public static String RETURN_URL = "http://127.0.0.1/success.html";           //成功回调地址
    public static String SIGN_TYPE = "RSA2";                                      //密钥加密方式
    public static String CHARSET = "utf-8";
    public static String GATEWAY_URL = "https://openapi.alipaydev.com/gateway.do";  //支付宝验证地址
}
